﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Reflection;

namespace SB.Database
{
    public static class DatabaseFacade
    {
        private static NHibernateDatabase dbAccess;

        public enum MatchMode
        {
            Exact,
            Start,
            End,
            Anywhere
        }

        public static void Initialize(Assembly assembly, string configResourceName)
        {
            dbAccess = new NHibernateDatabase(assembly, configResourceName);
        }

        public static IDatabase DataAccessInterface
        {
            get
            {
                return dbAccess;
            }
        }
    }
}
